package com.hua.common.http;

import java.util.concurrent.TimeUnit;

import okhttp3.OkHttpClient;

/**
 * Created by huaxiaolin on 2016/4/9.
 */
public class MyOkhttpClient {
    private static class LazyHolder {
        private static final OkHttpClient INSTANCE = new OkHttpClient.Builder().connectTimeout(5000, TimeUnit.MILLISECONDS).build();
    }

    public static final OkHttpClient getInstance() {
        return LazyHolder.INSTANCE;
    }

}
